<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	
	  

<h:head lang="pt">

<title>Cadastro de Usuário</title>


</h:head>

<h:body   lang="pt">


	<h:form id="formConta">
		<p:panel id="panelSalvaConta" header="Cadastro de Usuário">
         
			<p:messages ajax="true"  id="mensagem" showDetail="true" closable="true" />
			
                
            
        	 <h:panelGrid  columns = "2"  style = "margin-bottom: 10px"  CellPadding = "5"   >
        <p:outputLabel  for= "básico"  value = "Nomes:"  />
        <p:selectOneMenu id = "básico"  value = "#{AlunoBean.lista}" effect="fade" >
        
         <f:selectItems  itemLabel = "#{ALU.nome}"  ItemValue = "ALU" value="#{AlunoBean.lista}"  var= "ALU"  />
        </p:selectOneMenu>
	    </h:panelGrid>
       
   
 
    
            
				<h:outputLabel value="Login:" />
				<p:inputText id="txtLogin" value="#{UsuarioBean.usuario.login}"  />
				
				<h:outputLabel value="Senha:" />
				<p:inputText id="txtSenha"  value="#{UsuarioBean.usuario.senha}" />

		
	 
		
		<p:commandButton value="Salvar" update="@form"  action="#{UsuarioBean.salva()}"/>
		</p:panel>
		
		
	
	</h:form>
	
</h:body>
</html>